package com.yuyou.train.lesson.api;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.yuyou.train.lesson.service.IRuleService;
import com.yuyou.train.service.api.lesson.entity.Rule;
import com.yuyou.train.service.api.lesson.service.RuleAPI;





@RestController
public class RuleAPIImpl implements  RuleAPI{

	@Autowired
	private IRuleService ruleService;
	
	@Override
	public Rule selectById(@RequestParam("id") String id) {
		return ruleService.selectByPrimaryKey(id);
	}

	

	
	
}
